import { request } from '@pkg/request/src';

export enum Api {
  page = '/tourRecordPerson/page',
  get = '/tourRecordPerson/get',
  add = '/tourRecordPerson/save',
  update = '/tourRecordPerson/update',
  remove = '/tourRecordPerson/remove',
  deleteById = '/tourRecordPerson/deleteById',
}

export const get = params =>
  request.get(
    {
      url: Api.get,
      params: params,
    },
    { errorMessageMode: 'none', successMessageMode: 'none' },
  );
